<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewPropertyTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewPropertyLabel_propertyId}"/>
                    <h:outputText value="#{propertyController.selected.propertyId}" title="#{bundle.ViewPropertyTitle_propertyId}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_country}"/>
                    <h:outputText value="#{propertyController.selected.country}" title="#{bundle.ViewPropertyTitle_country}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_city}"/>
                    <h:outputText value="#{propertyController.selected.city}" title="#{bundle.ViewPropertyTitle_city}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_district}"/>
                    <h:outputText value="#{propertyController.selected.district}" title="#{bundle.ViewPropertyTitle_district}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_address}"/>
                    <h:outputText value="#{propertyController.selected.address}" title="#{bundle.ViewPropertyTitle_address}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_noOfBedroom}"/>
                    <h:outputText value="#{propertyController.selected.noOfBedroom}" title="#{bundle.ViewPropertyTitle_noOfBedroom}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_noOfBathroom}"/>
                    <h:outputText value="#{propertyController.selected.noOfBathroom}" title="#{bundle.ViewPropertyTitle_noOfBathroom}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_price}"/>
                    <h:outputText value="#{propertyController.selected.price}" title="#{bundle.ViewPropertyTitle_price}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_imageURL}"/>
                    <h:outputText value="#{propertyController.selected.imageURL}" title="#{bundle.ViewPropertyTitle_imageURL}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_isUsed}"/>
                    <h:outputText value="#{propertyController.selected.isUsed}" title="#{bundle.ViewPropertyTitle_isUsed}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_status}"/>
                    <h:outputText value="#{propertyController.selected.status}" title="#{bundle.ViewPropertyTitle_status}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_modeOfPay}"/>
                    <h:outputText value="#{propertyController.selected.modeOfPay}" title="#{bundle.ViewPropertyTitle_modeOfPay}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_rent}"/>
                    <h:outputText value="#{propertyController.selected.rent}" title="#{bundle.ViewPropertyTitle_rent}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_deposit}"/>
                    <h:outputText value="#{propertyController.selected.deposit}" title="#{bundle.ViewPropertyTitle_deposit}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_typeHouse}"/>
                    <h:outputText value="#{propertyController.selected.typeHouse}" title="#{bundle.ViewPropertyTitle_typeHouse}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_modeOfTransport}"/>
                    <h:outputText value="#{propertyController.selected.modeOfTransport}" title="#{bundle.ViewPropertyTitle_modeOfTransport}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_isfurniture}"/>
                    <h:outputText value="#{propertyController.selected.isfurniture}" title="#{bundle.ViewPropertyTitle_isfurniture}"/>
                    <h:outputText value="#{bundle.ViewPropertyLabel_squareFootage}"/>
                    <h:outputText value="#{propertyController.selected.squareFootage}" title="#{bundle.ViewPropertyTitle_squareFootage}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{propertyController.destroyAndView}" value="#{bundle.ViewPropertyDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewPropertyEditLink}"/>
                <br />
                <h:commandLink action="#{propertyController.prepareCreate}" value="#{bundle.ViewPropertyCreateLink}" />
                <br />
                <h:commandLink action="#{propertyController.prepareList}" value="#{bundle.ViewPropertyShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewPropertyIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
